package com.ruoyi.ombanner.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ombanner.mapper.OmBannerMapper;
import com.ruoyi.ombanner.domain.OmBanner;
import com.ruoyi.ombanner.service.IOmBannerService;

/**
 * banner管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
@Service
public class OmBannerServiceImpl implements IOmBannerService 
{
    @Autowired
    private OmBannerMapper omBannerMapper;

    /**
     * 查询banner管理
     * 
     * @param bannerId banner管理主键
     * @return banner管理
     */
    @Override
    public OmBanner selectOmBannerByBannerId(Long bannerId)
    {
        return omBannerMapper.selectOmBannerByBannerId(bannerId);
    }

    /**
     * 查询banner管理列表
     * 
     * @param omBanner banner管理
     * @return banner管理
     */
    @Override
    public List<OmBanner> selectOmBannerList(OmBanner omBanner)
    {
        return omBannerMapper.selectOmBannerList(omBanner);
    }

    /**
     * 新增banner管理
     * 
     * @param omBanner banner管理
     * @return 结果
     */
    @Override
    public int insertOmBanner(OmBanner omBanner)
    {
        return omBannerMapper.insertOmBanner(omBanner);
    }

    /**
     * 修改banner管理
     * 
     * @param omBanner banner管理
     * @return 结果
     */
    @Override
    public int updateOmBanner(OmBanner omBanner)
    {
        return omBannerMapper.updateOmBanner(omBanner);
    }

    /**
     * 批量删除banner管理
     * 
     * @param bannerIds 需要删除的banner管理主键
     * @return 结果
     */
    @Override
    public int deleteOmBannerByBannerIds(Long[] bannerIds)
    {
        return omBannerMapper.deleteOmBannerByBannerIds(bannerIds);
    }

    /**
     * 删除banner管理信息
     * 
     * @param bannerId banner管理主键
     * @return 结果
     */
    @Override
    public int deleteOmBannerByBannerId(Long bannerId)
    {
        return omBannerMapper.deleteOmBannerByBannerId(bannerId);
    }
}
